package com.longtop.framework.util;

import java.net.UnknownHostException;
import java.util.UUID;

/**
 * 产生唯一Key。
 * 
 * @author 胡砥峰
 */
public class UniqueKeyUtil {

	/**
	 * 获取32位唯一的uuid
	 * 
	 * @return
	 */
	public static String getUuidKey() {
		return UUID.randomUUID().toString().replaceAll("-", "");
	}

	/**
	 * 测试驱动开发
	 * 
	 * @param args
	 * @throws UnknownHostException
	 */
	public static void main(String[] args) throws UnknownHostException {
		System.out.println(getUuidKey());
	}
}
